import request from '@/utils/request'
// 查看套图方案详情
export function queryProductProgramDetail(id) {
  return request({
    url: '/seller/sellerStoreProductMergingProgram/' + id,
    method: 'get',
  })
}

// 新增套图方案
export function addProductMergingProgram(data) {
  return request({
    url: '/seller/sellerStoreProductMergingProgram',
    method: 'post',
    data: data
  })
}

// 修改套图方案
export function editProductMergingProgram(data) {
  return request({
    url: '/seller/sellerStoreProductMergingProgram/',
    method: 'put',
    data: data
  })
}

// 绑定/解绑商品至方案中
export function relevanceMergingProgram(data) {
  return request({
    url: '/seller/sellerStoreProductMergingProgramTask/relevanceMergingProgram',
    method: 'get',
    params: data
  })
}

// 停止或使用套图方案
export function sellerStoreProductMergingProgram(data) {
  return request({
    url: '/seller/sellerStoreProductMergingProgram/useProgram',
    method: 'get',
    params: data
  })
}

// 商品套图列表
export function sellerStoreProductProgramList(data) {
  return request({
    url: '/gather/seller/sellerStoreProductMergingProgram/list',
    method: 'get',
    params: data
  })
}

// 查看店铺下的在线商品列表
export function selectAeProductList(data) {
  return request({
    url: '/seller/sellerStoreProductMergingProgramTask/selectAeProductList',
    method: 'get',
    params: data
  })
}
